package com.tanhua.dubbo.api.mongo;

import com.tanhua.model.mongo.Report;

public interface ReportApi {
    /**
     * 查询该用户做该问卷的鉴定结果
     * @param userId
     * @param questionnaireId
     * @return
     */
    Report findByUserIdAndQuestionnaireId(Long userId, String questionnaireId);

    /**
     * 修改或增加报告并返回
     * @param report
     * @return
     */
    Report addAndUpdateReport(Report report);
}
